package com.fh.service.impl;

import com.fh.mapper.AreaMapper;
import com.fh.model.Area;
import com.fh.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangh
 * @create 2020-07-17 15:14
 */
@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    public AreaMapper areaMapper;

    @Override
    public List<Area> selectArea() {
     return    areaMapper.selectArea();
    }

    @Override
    public void addArea(Area area) {
        areaMapper.addArea(area);
    }

    @Override
    public Area selectAreaId(Integer areaPid) {
        return areaMapper.selectAreaId(areaPid);
    }

    @Override
    public void updateArea(Area area) {
        areaMapper.updateArea(area);
    }

    @Override
    public void deleteArea(List<Integer> areaId) {
        areaMapper.deleteArea(areaId);
    }
}
